<script type="text/javascript">


    $(document).ready(function(){
        

        //$("#id").autoNumeric({aSep: '.', aDec: ','});

    
        $("#btn_pilih_lokasi").click(function(){
            //alert('aaa');
            $("#dialog-lokasi").dialog('open');
        });
        
        $("#btn_pilih_barang").click(function(){
            $("#dialog-barang").dialog('open');
        });

    });
        
    //        function PilihLokasi(aa){
    //            $("#kode_png").val(kode_png);
    //            $("#nama_png").val(nama_png);
    //
    //            $("#dialog-lokasi").dialog('close');
    //        }

  

    function PilihLokasi(aa){
        var cc=aa.split("#");
        $("#kode_png").val(cc[0]);
        $("#kode_skpd").val(cc[1]);
        $("#nama_png").val(cc[2]);
            
        $("#dialog-lokasi").dialog('close');
    }
        
        
    function PilihBarang(aa){
        var cc=aa.split("#");
            
        $("#kode_aset").val(cc[0]);
        $("#nama_kel").val(cc[1]);
            
        $("#dialog-barang").dialog('close');
    }
        
        


</script>

<?php
if (Yii::app()->user->hasFlash('success'))
    $this->widget('bootstrap.widgets.TbAlert', array());

$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'id' => 'horizontalForm',
    'type' => 'horizontal',
    'enableAjaxValidation' => false,
        ));
?>



    <legend>Detail SPTPD Reklame </legend>
<br>
    
    <?php echo $form->errorSummary($model); ?>
<div class="form">
    <br>
<div class="control-group ">
        <label class="control-label" >Jenis Produk Reklame</label>
        <div class="controls">
            <input type="text" class="span2">
       <?php //echo $form->textField($model, 'kode_ka', array('class' => 'span1', 'id' => 'kode', 'value' => $kode, 'readonly' => true, 'maxlength' => 50));
            ?>
        </div>
    </div>
<div class="control-group ">
        <label class="control-label" >Jenis Reklame</label>
        <div class="controls">
            <input type="text" class="span2">
       <?php //echo $form->textField($model, 'kode_ka', array('class' => 'span1', 'id' => 'kode', 'value' => $kode, 'readonly' => true, 'maxlength' => 50));
            ?>
        </div>
    </div>
<div class="control-group ">
        <label class="control-label" >Keterangan Jenis</label>
        <div class="controls">
            <input type="text" class="span2">
       <?php //echo $form->textField($model, 'kode_ka', array('class' => 'span1', 'id' => 'kode', 'value' => $kode, 'readonly' => true, 'maxlength' => 50));
            ?>
        </div>
    </div>
<div class="control-group ">
        <label class="control-label" >Kode Rekening</label>
        <div class="controls">
            <input type="text" class="span2">
       <?php //echo $form->textField($model, 'kode_ka', array('class' => 'span1', 'id' => 'kode', 'value' => $kode, 'readonly' => true, 'maxlength' => 50));
            ?>
        </div>
    </div>
<div class="control-group ">
        <label class="control-label" >Nama Rekening</label>
        <div class="controls">
            <input type="text" class="span2">
       <?php //echo $form->textField($model, 'kode_ka', array('class' => 'span1', 'id' => 'kode', 'value' => $kode, 'readonly' => true, 'maxlength' => 50));
            ?>
        </div>
    </div>
<div class="control-group ">
        <label class="control-label" >Uraian Reklame</label>
        <div class="controls">
            <input type="text" class="span2">
       <?php //echo $form->textField($model, 'kode_ka', array('class' => 'span1', 'id' => 'kode', 'value' => $kode, 'readonly' => true, 'maxlength' => 50));
            ?>
        </div>
    </div>
<div class="control-group ">
        <label class="control-label" >Kelas Reklame</label>
        <div class="controls">
            <input type="text" class="span2">
       <?php //echo $form->textField($model, 'kode_ka', array('class' => 'span1', 'id' => 'kode', 'value' => $kode, 'readonly' => true, 'maxlength' => 50));
            ?>
        </div>
    </div>
<div class="control-group ">
        <label class="control-label" >Lokasi Reklame</label>
        <div class="controls">
            <input type="text" class="span2">
       <?php //echo $form->textField($model, 'kode_ka', array('class' => 'span1', 'id' => 'kode', 'value' => $kode, 'readonly' => true, 'maxlength' => 50));
            ?>
        </div>
    </div>
<div class="control-group ">
        <label class="control-label" >Keterangan Lokasi</label>
        <div class="controls">
            <input type="text" class="span2">
       <?php //echo $form->textField($model, 'kode_ka', array('class' => 'span1', 'id' => 'kode', 'value' => $kode, 'readonly' => true, 'maxlength' => 50));
            ?>
        </div>
    </div>
<div class="control-group ">
        <label class="control-label" >Reklame Bersinar</label>
        <div class="controls">
            <input type="text" class="span2">
       <?php //echo $form->textField($model, 'kode_ka', array('class' => 'span1', 'id' => 'kode', 'value' => $kode, 'readonly' => true, 'maxlength' => 50));
            ?>
        </div>
    </div>
<div class="control-group ">
        <label class="control-label" >Tema Reklame</label>
        <div class="controls">
            <input type="text" class="span2">
       <?php //echo $form->textField($model, 'kode_ka', array('class' => 'span1', 'id' => 'kode', 'value' => $kode, 'readonly' => true, 'maxlength' => 50));
            ?>
        </div>
    </div>
<div class="control-group ">
        <label class="control-label" >Tarif Per Meter</label>
        <div class="controls">
            <input type="text" class="span2">
       <?php //echo $form->textField($model, 'kode_ka', array('class' => 'span1', 'id' => 'kode', 'value' => $kode, 'readonly' => true, 'maxlength' => 50));
            ?>
        </div>
    </div>
<div class="control-group ">
    <label class="control-label" ><b>Uraian Reklame</b></label>
          
    </div>
<div class="control-group ">
        <label class="control-label"> Panjang</label>
        <div class="controls">
            <input type="text" class="span2">
       <?php //echo $form->textField($model, 'kode_ka', array('class' => 'span1', 'id' => 'kode', 'value' => $kode, 'readonly' => true, 'maxlength' => 50));
            ?>
        </div>
    </div>
<div class="control-group ">
        <label class="control-label">Lebar</label>
        <div class="controls">
            <input type="text" class="span2">
       <?php //echo $form->textField($model, 'kode_ka', array('class' => 'span1', 'id' => 'kode', 'value' => $kode, 'readonly' => true, 'maxlength' => 50));
            ?>
        </div>
    </div>
<div class="control-group ">
        <label class="control-label">Jumlah Sisi</label>
        <div class="controls">
            <input type="text" class="span2">
       <?php //echo $form->textField($model, 'kode_ka', array('class' => 'span1', 'id' => 'kode', 'value' => $kode, 'readonly' => true, 'maxlength' => 50));
            ?>
        </div>
    </div>
<div class="control-group ">
        <label class="control-label">Jumlah Reklame</label>
        <div class="controls">
            <input type="text" class="span2">
       <?php //echo $form->textField($model, 'kode_ka', array('class' => 'span1', 'id' => 'kode', 'value' => $kode, 'readonly' => true, 'maxlength' => 50));
            ?>
        </div>
    </div>


<div class="control-group ">
    <label class="control-label" >Status Hak</label>
    <div class="controls">

        <?php
//        echo $form->DropDownList($model, 'sts_hak', array(
//            'prompt' => '',
//            '0' => 'Hak Pakai',
//            '1' => 'Hak Milik',
//            '2' => 'Hak Guna Usaha',
//            '3' => 'Hibah',
//            '4' => 'Hak Pengelolaan'
//                ), array('class' => 'span2'));
        ?>
    </div>
</div>

<div class="control-group ">
    <label class="control-label" >TMT</label>
    <div class="controls">
        <div class="span2" style="margin:0;">
            <div class="input-group">
                <span class="input-group-addon"><i class="icon-calendar"></i></span>
                <?php
                $this->widget('zii.widgets.jui.CJuiDatePicker', array(
                    'model' => $model,
                    //'attribute' => 'kode_png',
                    'attribute' => 'nomor_induk',
                    // additional javascript options for the date picker plugin
                    'options' => array(
                        'yearRange' => 'c-50:c+20',
                    ),
                ));
                ?>
            </div>
        </div>	
    </div>
</div>
<div class="control-group ">
        <label class="control-label">Tarif Pajak</label>
        <div class="controls">
            
       <?php //echo $form->textField($model, 'kode_ka', array('class' => 'span1', 'id' => 'kode', 'value' => $kode, 'readonly' => true, 'maxlength' => 50));
            ?>
        </div>
    </div>
</div>
<div class="form-actions">
       <?php
            $this->widget('bootstrap.widgets.TbButton', array(
                'buttonType' => 'submit',
                'type' => 'success',
				'icon' => 'save',
                //'label' => $model->isNewRecord ? 'Simpan' : 'Update',
				'label' => 'Simpan',
            ));
            ?>
            <?php
            $this->widget('bootstrap.widgets.TbButton', array(
            'type' => 'primary',
            'label' => 'Cari',
			'icon' => 'search',
			'url' => Yii::app()->createUrl("/KIB/KibA/admin"),
			'htmlOptions' => array(
				'style' => 'margin-left:5px',
			),
        ));
        ?>
            <?php
            $this->widget('bootstrap.widgets.TbButton', array(
                'buttonType' => 'reset',
                //'type' => 'primary',
                //'label' => $model->isNewRecord ? 'Batal' : 'Reset',
				'icon' => 'remove',
				'label' => 'Batal',
				'htmlOptions' => array(
					'style' => 'margin-left:5px;',
				),
            ));
            ?>

    <?php $this->endWidget(); ?>
</div>


    